package org.jeecg.modules.complain.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.complain.entity.PrjBtn;
import org.jeecg.modules.complain.mapper.PrjBtnMapper;
import org.jeecg.modules.complain.service.IPrjBtnService;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: btn Control
 * @Author: jeecg-boot
 * @Date:   2019-08-17
 * @Version: V1.0
 */
@Service
public class PrjBtnServiceImpl extends ServiceImpl<PrjBtnMapper, PrjBtn> implements IPrjBtnService {

     @Autowired
     private PrjBtnMapper prjBtnMapper;

     @Autowired
     private SysUserMapper sysUserMapper;

    @Override
    public PrjBtn selectControlByuserId(String userId) {
        return prjBtnMapper.selectControlByuserId(userId);
    }


    /**
     * 部门用户信息查询
     *
     * @param departId
     */
    @Override
    public List<SysUser> listDepartUser(String departId) {
        return prjBtnMapper.listDepartUser(departId);
    }
}
